﻿using System;
using System.Collections.Generic;
using System.Text;
using CTEM.Controllers.Global;

namespace CTEM.Models
{
    public class WorkerSalaryDTO
    {
        public string ConstructionName { get; set; }
        public long WorkersSalaryID { get; set; }
        public long ConstructionID { get; set; }
        public string Manager { get; set; }
        public string ManagerName { get; set; }

        public string Name { get; set; }
        public DateTime FromDate { get; set; }
        public DateTime ToDate { get; set; }
        public long TotalSalary { get; set; }
        public long OthersCost { get; set; }
        public string Reason { get; set; }
        public long TotalCost { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime LastUpdate { get; set; }
        public string CreatedBy { get; set; }
        public string UpdatedBy { get; set; }
        public bool isChecked { get; set; }
        public string Task { get; set; }
        public int Status { get; set; }
        public List<WorkerDTO> listWork { get; set;}



        public DateTime month { get; set; }
        public WorkerSalaryDTO()
        {
            ConstructionID = 0;
            Name = Constants.EMPTY_TEXT;
            TotalCost = 0;
            TotalSalary  = 0;
            OthersCost = 0;
            Manager = Constants.EMPTY_TEXT;
            Task = Constants.EMPTY_TEXT;
            Reason = Constants.EMPTY_TEXT;
            CreateDate = DateTime.Today;
            LastUpdate = DateTime.Today;
            ToDate = DateTime.Today;
            FromDate = DateTime.Today;
            UpdatedBy = Global.CurrentUser.Username;
            CreatedBy = Global.CurrentUser.Username;
        
           
        }
    }
}
